package com.boang.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.boang.entity.po.SysRole;
import com.boang.service.SysRoleService;
import com.boang.mapper.SysRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 13813
* @description 针对表【sys_role】的数据库操作Service实现
* @createDate 2025-03-03 16:16:27
*/
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole>
    implements SysRoleService{

    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> getRolesByUserId(int userId) {
        return sysRoleMapper.selectRolesByUserId(userId);
    }
}




